package com.foreveross.bsl.mdm.ios.cmds;

import com.foreveross.bsl.mdm.ios.IosCommand;

/**
 * @description 擦除设备指令 
 *
 * @author heyaowen
 * @version v1.0
 *
 * @2014-7-21
 *
 */
public class EraseDeviceCommand extends IosCommand {

    private String pin;// The Find My Mac PIN. Must be 4 or 6 characters long. Note that this field is provided only for OS X, not iOS.

    public void executeBefore() {
        getCommand().put("RequestType", IosCommand.COMMAND_ERASE_DEVICE);
    }

    @Override
    public void doExecute() {
        if (pin != null)
            getCommand().put("PIN", pin);

    }

    public void setPin(String pin) {
        this.pin = pin;
    }
}
